package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessConsultingMapper;
import com.hckjsec.cloud.domain.AppletsBusinessConsulting;
import com.hckjsec.cloud.service.IAppletsBusinessConsultingService;

/**
 * 申办信息咨询Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-24
 */
@Service
public class AppletsBusinessConsultingServiceImpl implements IAppletsBusinessConsultingService 
{
    @Autowired
    private AppletsBusinessConsultingMapper appletsBusinessConsultingMapper;

    /**
     * 查询申办信息咨询
     * 
     * @param id 申办信息咨询ID
     * @return 申办信息咨询
     */
    @Override
    public AppletsBusinessConsulting selectAppletsBusinessConsultingById(Long id)
    {
        return appletsBusinessConsultingMapper.selectAppletsBusinessConsultingById(id);
    }

    /**
     * 查询申办信息咨询列表
     * 
     * @param appletsBusinessConsulting 申办信息咨询
     * @return 申办信息咨询
     */
    @Override
    public List<AppletsBusinessConsulting> selectAppletsBusinessConsultingList(AppletsBusinessConsulting appletsBusinessConsulting)
    {
        return appletsBusinessConsultingMapper.selectAppletsBusinessConsultingList(appletsBusinessConsulting);
    }

    /**
     * 新增申办信息咨询
     * 
     * @param appletsBusinessConsulting 申办信息咨询
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessConsulting(AppletsBusinessConsulting appletsBusinessConsulting)
    {
        return appletsBusinessConsultingMapper.insertAppletsBusinessConsulting(appletsBusinessConsulting);
    }

    /**
     * 修改申办信息咨询
     * 
     * @param appletsBusinessConsulting 申办信息咨询
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessConsulting(AppletsBusinessConsulting appletsBusinessConsulting)
    {
        return appletsBusinessConsultingMapper.updateAppletsBusinessConsulting(appletsBusinessConsulting);
    }

    /**
     * 批量删除申办信息咨询
     * 
     * @param ids 需要删除的申办信息咨询ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessConsultingByIds(Long[] ids)
    {
        return appletsBusinessConsultingMapper.deleteAppletsBusinessConsultingByIds(ids);
    }

    /**
     * 删除申办信息咨询信息
     * 
     * @param id 申办信息咨询ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessConsultingById(Long id)
    {
        return appletsBusinessConsultingMapper.deleteAppletsBusinessConsultingById(id);
    }
}
